#启动脚本
#!/bin/bash
case $1 in
start)
	/usr/local/nginx/sbin/nginx;;
stop)
	/usr/local/nginx/sbin/nginx -s stop;;
restart)
	/usr/local/nginx/sbin/nginx -s stop
        /usr/local/nginx/sbin/nginx;;
status)
	netstat -auptn|grep -q nginx
	if [ $? -eq 0 ];then
	echo "fuwu yiqidong"
else
echo "fu wu wei qidong"
fi;;
*)
echo Error;;
esac
